/*
 * @Description: 
 * @Author: zhanyinjia
 * @Date: 2022-11-30 14:19:56
 * @LastEditors: zhanyinjia
 * @LastEditTime: 2024-07-23 13:53:00
 */
const routes = [
  {
    path: "/library",
    redirect: '/library/json2excel',
    component: () =>
      import( /* webpackChunkName: "home" */ "@/views/home"),
    children: [
      {
        path: "json2excel",
        name: "json2excel",
        component: () =>
          import( /* webpackChunkName: "library-json2excel" */ "@/views/library/excel/json2excel"),
        meta: {
          title: 'json导出excel'
        }
      },
      {
        path: "excel2json",
        name: "excel2json",
        component: () =>
          import( /* webpackChunkName: "library-excel2json" */ "@/views/library/excel/excel2json"),
        meta: {
          title: 'excel解析出json'
        }
      },
      {
        path: "g6",
        name: "g6",
        component: () =>
          import( /* webpackChunkName: "library-g6" */ "@/views/library/g6"),
        meta: {
          title: '流程图'
        }
      },
      {
        path: "longList",
        name: "longList",
        component: () =>
          import( /* webpackChunkName: "library-longList" */ "@/views/library/longList"),
        meta: {
          title: '虚拟长列表'
        }
      },
      {
        path: "longTable",
        name: "longTable",
        component: () =>
          import( /* webpackChunkName: "library-longTable" */ "@/views/library/longTable"),
        meta: {
          title: '虚拟长表格'
        }
      },
      {
        path: "fileViewer",
        name: "fileViewer",
        component: () =>
          import( /* webpackChunkName: "library-fileViewer" */ "@/views/library/fileViewer"),
        meta: {
          title: '文件在线预览'
        }
      },
      {
        path: "sheet",
        name: "sheet",
        component: () =>
          import( /* webpackChunkName: "library-sheetJs" */ "@/views/library/sheet"),
        meta: {
          title: 'sheetJs基础功能'
        }
      },
    ]
  },
];

export default routes
